import request from '@/utils/request'

/**
 * 财务及数据
 */

// 经营报表
export function fetchAgeList(data) {
	return request({
		url: '/statistics/management/ageList',
		method: 'POST',
		data: data
	})
}
// 经营报表合计
export function fetchAgeAggregate(data) {
	return request({
		url: '/statistics/management/ageAggregate',
		method: 'POST',
		data: data
	})
}
// 灵活经营报表
export function fetchList(data) {
	return request({
		url: '/statistics/management/list',
		method: 'POST',
		data: data
	})
}
// 灵活经营报表合计
export function fetchAggregate(data) {
	return request({
		url: '/statistics/management/aggregate',
		method: 'POST',
		data: data
	})
}
// 灵活经营报表（商圈）
export function fetchAreaList(data) {
	return request({
		url: '/statistics/management/areaList',
		method: 'POST',
		data: data
	})
}
// 灵活经营报表合计（商圈）
export function fetchAreaAggregate(data) {
	return request({
		url: '/statistics/management/areaAggregate',
		method: 'POST',
		data: data
	})
}
// 灵活儿应收账款报表
export function fetchFlexibleBillList(data) {
	return request({
		url: '/statistics/accountsFlexible/list',
		method: 'POST',
		data: data
	})
}
// 灵活儿应收账款报表合计
export function fetchFlexibleBillAggregate(data) {
	return request({
		url: '/statistics/accountsFlexible/aggregate',
		method: 'POST',
		data: data
	})
}
// 灵活儿应收账款报表明细
export function fetchFlexibleBillDetail(data) {
	return request({
		url: '/statistics/accountsFlexible/detail',
		method: 'POST',
		data: data
	})
}


// WEBPACK FOOTER //
// ./src/api/sheet.js